<?php
include(ANYROOT.'include/page.class.php');
$cid=getcateidbyname($cateId);
$cnname=getinfo($cid,'name','categories');
$enname=getinfo($cid,'englishname','categories');
$total=getcount("SELECT `essay_id`FROM ".tbname("essay")." WHERE essay_status='pub' AND essay_categoryid='$cid'");
$url="./?cate-$cateId-$id";
$prepage=4;
$page=$classPage;
$p=new Page2($total,$url,$page,$prepage);
$offset=($page-1)*$prepage;
$pgtitle=$cnname.'-';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<meta name="keywords" content="共青团,中南民族大学,中南民族大学委员会,青年网,清音文潭,mygoare,教育网,青年,青年传媒中心" />
	<meta name="description" content="共青团中南民族大学委员会青年网,校园文化的传播与引领平台" />
	<meta name="author" content="青年网,mygoare" />
	<title>共青团中南民族大学委员会青年网--青年课堂</title>
	<link type="text/css" href="../src/css/myResetCss.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="../src/css/qingyin.css" media="all" />
	<script src="../src/js/jquery-1.63.min.js" type="text/javascript"></script>
  <title></title>
</head>
<body>
	<div id="header">
		<div class="common">
			<p class="own">主办：<span>共青团中南民族大学委员会青年传媒中心</span></p>
			<p class="links"><a href="../">青年网首页</a> - <a href="../news">青年动态</a> - <a href="../qingyin">青年课堂</a> - <a href="../nanhu">青年资讯</a></p>
		</div>
	</div>
	<div class="layout bg_after">
		<div id="content">
		<div id="logo"><a href="./" title="共青团中南民族大学委员会青年网--青年课堂"></a></div>
		<div id="nav">
			<ul>
			  <li>
			    <a href="./?class-meiyuejujiao.htm" title="每月聚焦"></a>
			    <a href="./?class-mingjiazhuanlan.htm" title="一家之言"></a>
			    <a href="./?class-minzuchanglang.htm" title="民族长廊"></a>
			    <a href="./?cate-qingyinwentan.htm" title="清音文潭"></a>
			    <a href="http://page.renren.com/670000433" target="_blank" title="大学四年"></a>
			    <a href="http://210.42.151.64:8000/cs/" target="_blank" title="社团风采"></a>
			    <a href="http://www.scuec.edu.cn/tuanwei/twei/xyst/" target="_blank" title="艺术民大"></a>
			    <a href="http://www.renren.com/yizhangdui" target="_blank" title="国旗班"></a>
			    <a href="http://www.renren.com/601259409" target="_blank" title="礼仪队"></a>
			    <a href="http://i.youku.com/u/id_UNDE1MjY4MTQ0" target="_blank" title="明宇传媒"></a>
			  </li>
			</ul>
		</div>
		<div class="clear"></div>

	<div id="left">
			<div class="news_location">
				您现在的位置：
				<a href="../">青年网</a> &gt; <a href="./">青年课堂</a> &gt; <a href="./?class-<?=$enname?>.htm"><?=$cnname?></a>
			</div>
			<div class="news_class">
<?php
    $sql="SELECT * FROM ".tbname('categories')."  WHERE `categories_parentid`='$cid' ORDER BY categories_sort ASC LIMIT 0,8";
     $res = $_ANYGLOBAL['db']->query($sql);
    if($res){
	$row=$_ANYGLOBAL['db']->getall($res);
    foreach($row as $list){
		$catename=$list['categories_name'];
		$cateenname=$list['categories_englishname'];
		if(substr($cateenname,0,7) != 'http://'){
		?>
		<p class="list_cate"><a href="./?class-<?=$cateenname?>.htm" ><?=$catename?></a></p>
						<ul>
							<?=listnewsbycid($list['categories_id'],60,$prepage,'[m-d]','no',$offset)?>
						</ul>
						<div class="clear"></div>
	<?php	} }	} ?>				
			</div>

			<div class="news_page">
				
			</div>
	</div>
<?php include("sidebar.php"); ?>
<?php include("footer.php"); ?>
